package bdqn.com.cui.service.impl;

import bdqn.com.cui.dao.impl.Userdaoimpl;
import bdqn.com.cui.pojo.User;
import bdqn.com.cui.service.Userservice;

import java.util.List;
import java.util.Map;

public class UserserviceImpl implements Userservice {
    Userdaoimpl userDaoimpl=new Userdaoimpl();



    @Override
    public List<User> getsenect(int form, int page) {
        return userDaoimpl.getidserent(form,page);
    }

    @Override
    public int getcount() {
        return userDaoimpl.getcount();
    }

    @Override
    public List<User> getidserent(String id) {
        return userDaoimpl.idset(id);
    }

    @Override
    public int add(User user) {
        return userDaoimpl.add(user);
    }

    @Override
    public int delete(String id) {
        return userDaoimpl.delete(id);
    }

    @Override
    public int update(User user) {
        return userDaoimpl.update(user);
    }

    @Override
    public User denlu(String zhanghao, String password) {
        return userDaoimpl.denlu(zhanghao,password);
    }

    @Override
    public int Typeupdate(String type, String tj) {
        return userDaoimpl.Typeupdate(type,tj);
    }

    @Override
    public Map getsex() {
        return userDaoimpl.getsex();
    }

    @Override
    public int useradd(User user) {
        return userDaoimpl.useradd(user);
    }

    @Override
    public int zcselent(String zhanghao) {
        return userDaoimpl.zcselent(zhanghao);
    }


}
